<?php
/**
 * Created by JetBrains PhpStorm.
 * User: Zeta-Daryll
 * Date: 6/17/14
 * Time: 12:09 PM
 * To change this templates use File | Settings | File Templates.
 */
class Admin_promotion_model extends CI_Model {

    public function __construct()
    {
        // Call the Model constructor
        parent::__construct();
        $this->load->database();
    }

    public function getInfoCouponCode($couponCode){
        $query = $this->db->query("SELECT * FROM coupon WHERE coupon_code = '$couponCode'");
        return $query->row_array();
    }
}
?>